package com.lkd.service.impl;

import com.lkd.mapper.OrderCollectMapper;
import com.lkd.service.OrderCollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDate;

@Service
public class OrderCollectServiceImpl implements OrderCollectService {

    @Autowired
    private OrderCollectMapper orderCollectMapper;

    @Override
    public int orderCount(LocalDate start, LocalDate end) {
        int count = orderCollectMapper.orderCount(start,end);
        return count;
    }

    @Override
    public int orderAmount(LocalDate start, LocalDate end) {
        int count = orderCollectMapper.orderAmount(start,end);
        return count;
    }
}
